package cn.gson.fengboot.model.service;

import cn.gson.fengboot.model.dao.LjiaofuDao;
import cn.gson.fengboot.model.mapper.LjiaofuMapper;
import cn.gson.fengboot.model.pojos.Ljiaofu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class LjiaofuService {
    @Autowired
    LjiaofuDao ljiaofuDao;
    @Autowired
    LjiaofuMapper ljiaofuMapper;

    //查询交付
    public List<Ljiaofu> jiaofucx(Integer jfbid){
        return ljiaofuMapper.jiaofucx(jfbid);
    }


    //新增交付
    @Transactional(transactionManager = "transactionManager")
    public  void addjiaofu(Ljiaofu ljiaofu){
        ljiaofuDao.save(ljiaofu);

    }

}
